/*
 * @Author: 噜噜雯雯 2199987619@qq.com
 * @Date: 2025-05-27 08:43:07
 * @LastEditors: 噜噜雯雯 2199987619@qq.com
 * @LastEditTime: 2025-07-23 11:16:34
 * @FilePath: \linePatrol\vue-element-plus-admin\src\api\common\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import service from '@/axios/http'
class RouteApi {
  //路由
  async GetRoutes(): Promise<any> {
    const result = (await service.get('/api/system/menu/getRouters')) as unknown as any

    return result
  }
  async GetUserInfo(): Promise<any> {
    const result = (await service.get('/api/system/user/getInfo')) as unknown as any
    const { code, user } = result
    if (code == 200) {
      return user
    }
  }
}
export default new RouteApi()
